package a.f.g.a;

import a.c.e;

class hb
  extends gb
{
  private e[] d;
  private int e;
  private boolean f;
  private int g;
  private double h = 0.25D;
  private f i = new pb();
  private f k = new pb();
  
  hb()
  {
    this(false);
  }
  
  hb(boolean paramBoolean)
  {
    this.f = paramBoolean;
  }
  
  public double c()
  {
    return this.h;
  }
  
  public void a(double paramDouble)
  {
    this.h = paramDouble;
  }
  
  public boolean f()
  {
    return this.f;
  }
  
  public void a(boolean paramBoolean)
  {
    this.f = paramBoolean;
  }
  
  public void a()
  {
    this.d = null;
    this.e = -1;
  }
  
  public void a(bb parambb)
  {
    boolean bool = xb.r;
    int m = xb.q;
    xb localxb = parambb.h();
    if (!bool) {
      if (this.d != null)
      {
        if (bool) {
          break label53;
        }
        if (this.e == localxb.l()) {
          break label52;
        }
      }
    }
    this.d = a(localxb);
    label52:
    label53:
    int j = 0;
    do
    {
      if (j >= this.d.length) {
        break;
      }
      xb.a_ locala_ = localxb.d(this.d[j]);
      if (!bool)
      {
        if (locala_.j() == 1.0D)
        {
          locala_.x();
          locala_.e(this.c.a(locala_, parambb));
          if (bool) {
            continue;
          }
          if (m == 0) {}
        }
        else
        {
          a(locala_, parambb);
        }
      }
      else {
        a(j, locala_, parambb);
      }
      j++;
    } while (m == 0);
  }
  
  private void a(int paramInt, cb paramcb, bb parambb)
  {
    boolean bool = xb.r;
    double d1 = parambb.d().i();
    double d2 = paramcb.g();
    if (!bool) {
      if (this.f)
      {
        if (!bool) {
          if (d2 > d1 * (2.0D - this.h)) {
            a(paramInt, (paramInt + this.g + 1) % this.d.length);
          }
        }
        if (!bool)
        {
          if (this.d.length <= 2) {
            return;
          }
          if (bool) {}
        }
        else
        {
          if (parambb.f().c(0, 2) != 1) {
            return;
          }
          if (bool) {
            break label180;
          }
          a(parambb.f().c(paramInt + 1, paramInt + this.g) % this.d.length, parambb.f().c(paramInt + 1, paramInt + this.g) % this.d.length);
        }
        if (xb.q == 0) {
          return;
        }
      }
    }
    label180:
    a(paramInt, parambb.f().nextInt(paramInt + 1));
  }
  
  protected void a(xb.a_ parama_, bb parambb)
  {
    boolean bool = xb.r;
    int m = xb.q;
    parama_.x();
    int j = 0;
    if (j < this.a.size()) {}
    do
    {
      nc localnc = (nc)this.a.get(j);
      this.k.a();
      a(parama_);
      parama_.b(localnc.a(parama_, parambb, this.k));
      a(localnc);
      j++;
      if ((!bool) && (m != 0)) {
        return;
      }
      if (m == 0) {
        break;
      }
      parama_.e(this.c.a(parama_, parambb));
      this.i.a();
    } while (bool);
    this.b.a(parama_, parambb, this.i);
  }
  
  private e[] a(xb paramxb)
  {
    this.e = paramxb.l();
    this.g = (paramxb.m().j() / 3 + 1);
    return paramxb.m().t();
  }
  
  protected void a(xb.a_ parama_) {}
  
  protected void a(nc paramnc) {}
  
  private void a(int paramInt1, int paramInt2)
  {
    if (paramInt1 != paramInt2)
    {
      e locale = this.d[paramInt2];
      this.d[paramInt2] = this.d[paramInt1];
      this.d[paramInt1] = locale;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.g.a.hb

 * JD-Core Version:    0.7.0.1

 */